<!-- Sidebar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="<?php echo url::site('admin')?>">СтройТехника</a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav side-nav">
            <li <?if ($controller == 'Test'):?>class="active" <?php endif?>><a href="<?php echo url::site('admin')?>"><i class="fa fa-dashboard"></i> Главная</a></li>
            <li <?if ($controller == 'Products'):?>class="active" <?php endif?>><a href="<?php echo url::site('admin/products')?>"><i class="fa fa-bar-chart-o"></i> Продукты</a></li>
            <li <?if ($controller == 'Categories'):?>class="active" <?php endif?>><a href="<?php echo url::site('admin/categories')?>"><i class="fa fa-table"></i> Категории</a></li>
<!--            <li><a href="forms.html"><i class="fa fa-edit"></i> Forms</a></li>-->
<!--            <li><a href="typography.html"><i class="fa fa-font"></i> Typography</a></li>-->
<!--            <li><a href="bootstrap-elements.html"><i class="fa fa-desktop"></i> Bootstrap Elements</a></li>-->
<!--            <li><a href="bootstrap-grid.html"><i class="fa fa-wrench"></i> Bootstrap Grid</a></li>-->
<!--            <li><a href="blank-page.html"><i class="fa fa-file"></i> Blank Page</a></li>-->
<!--            <li class="dropdown">-->
<!--                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-caret-square-o-down"></i> Dropdown <b class="caret"></b></a>-->
<!--                <ul class="dropdown-menu">-->
<!--                    <li><a href="#">Dropdown Item</a></li>-->
<!--                    <li><a href="#">Another Item</a></li>-->
<!--                    <li><a href="#">Third Item</a></li>-->
<!--                    <li><a href="#">Last Item</a></li>-->
<!--                </ul>-->
<!--            </li>-->
        </ul>

        <ul class="nav navbar-nav navbar-right navbar-user">
            <li class="dropdown messages-dropdown">
<!--                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-envelope"></i> Messages <span class="badge">7</span> <b class="caret"></b></a>-->
<!--                <ul class="dropdown-menu">-->
<!--                    <li class="dropdown-header">7 New Messages</li>-->
<!--                    <li class="message-preview">-->
<!--                        <a href="#">-->
<!--                            <span class="avatar"><img src="http://placehold.it/50x50"></span>-->
<!--                            <span class="name">:</span>-->
<!--                            <span class="message">Hey there, I wanted to ask you something...</span>-->
<!--                            <span class="time"><i class="fa fa-clock-o"></i> 4:34 PM</span>-->
<!--                        </a>-->
<!--                    </li>-->
<!--                    <li class="divider"></li>-->
<!--                    <li class="message-preview">-->
<!--                        <a href="#">-->
<!--                            <span class="avatar"><img src="http://placehold.it/50x50"></span>-->
<!--                            <span class="name">John Smith:</span>-->
<!--                            <span class="message">Hey there, I wanted to ask you something...</span>-->
<!--                            <span class="time"><i class="fa fa-clock-o"></i> 4:34 PM</span>-->
<!--                        </a>-->
<!--                    </li>-->
<!--                    <li class="divider"></li>-->
<!--                    <li class="message-preview">-->
<!--                        <a href="#">-->
<!--                            <span class="avatar"><img src="http://placehold.it/50x50"></span>-->
<!--                            <span class="name">John Smith:</span>-->
<!--                            <span class="message">Hey there, I wanted to ask you something...</span>-->
<!--                            <span class="time"><i class="fa fa-clock-o"></i> 4:34 PM</span>-->
<!--                        </a>-->
<!--                    </li>-->
<!--                    <li class="divider"></li>-->
<!--                    <li><a href="#">View Inbox <span class="badge">7</span></a></li>-->
<!--                </ul>-->
<!--            </li>-->
<!--            <li class="dropdown alerts-dropdown">-->
<!--                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bell"></i> Alerts <span class="badge">3</span> <b class="caret"></b></a>-->
<!--                <ul class="dropdown-menu">-->
<!--                    <li><a href="#">Default <span class="label label-default">Default</span></a></li>-->
<!--                    <li><a href="#">Primary <span class="label label-primary">Primary</span></a></li>-->
<!--                    <li><a href="#">Success <span class="label label-success">Success</span></a></li>-->
<!--                    <li><a href="#">Info <span class="label label-info">Info</span></a></li>-->
<!--                    <li><a href="#">Warning <span class="label label-warning">Warning</span></a></li>-->
<!--                    <li><a href="#">Danger <span class="label label-danger">Danger</span></a></li>-->
<!--                    <li class="divider"></li>-->
<!--                    <li><a href="#">View All</a></li>-->
<!--                </ul>-->
<!--            </li>-->
            <li class="dropdown user-dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <?php echo Auth::instance()->get_user()->username?> <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="#"><i class="fa fa-user"></i> Profile</a></li>
                    <li class="divider"></li>
                    <li><a href="<?php echo url::site('admin/auth/logout')?>"><i class="fa fa-power-off"></i> Log Out</a></li>
                </ul>
            </li>
        </ul>
    </div><!-- /.navbar-collapse -->
</nav>